home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / src / linux-headers-2.6.28-15 / include / linux / htirq.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-12-24  |  760 b   |  24 lines

  1. #ifndef LINUX_HTIRQ_H
  2. #define LINUX_HTIRQ_H
  3.  
  4. struct ht_irq_msg {
  5.     u32    address_lo;    /* low 32 bits of the ht irq message */
  6.     u32    address_hi;    /* high 32 bits of the it irq message */
  7. };
  8.  
  9. /* Helper functions.. */
  10. void fetch_ht_irq_msg(unsigned int irq, struct ht_irq_msg *msg);
  11. void write_ht_irq_msg(unsigned int irq, struct ht_irq_msg *msg);
  12. void mask_ht_irq(unsigned int irq);
  13. void unmask_ht_irq(unsigned int irq);
  14.  
  15. /* The arch hook for getting things started */
  16. int arch_setup_ht_irq(unsigned int irq, struct pci_dev *dev);
  17.  
  18. /* For drivers of buggy hardware */
  19. typedef void (ht_irq_update_t)(struct pci_dev *dev, int irq,
  20.                    struct ht_irq_msg *msg);
  21. int __ht_create_irq(struct pci_dev *dev, int idx, ht_irq_update_t *update);
  22.  
  23. #endif /* LINUX_HTIRQ_H */
  24.